package com.xyzwps.orm.gsql.repository

import com.xyzwps.orm.repository.TablesRepository
import groovy.sql.Sql

class GsqlTablesRepository implements TablesRepository {

    private final Sql sql

    GsqlTablesRepository(Sql sql) {
        this.sql = Objects.requireNonNull(sql)
    }

    @Override
    void cleanAllTables() {
        sql.execute "delete from tag"
    }
}
